Ext.define('Admin.view.leaveapprove.DeptLeaderAuditForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.deptleaderAudit_form',
    requires: [
        'Ext.button.Button',
        'Ext.form.RadioGroup',
        //'Ext.form.field.Radio', 
        'Ext.form.field.*'
        
        //'Ext.form.field.File',
        //'Ext.form.field.Date',
        //'Ext.form.field.ComboBox',
        //'Ext.form.field.HtmlEditor'
    ],
    viewModel: {type: 'leaveapprove'},
    controller: 'leaveapprove',
    bodyPadding: 10,
    bodyBorder: true,


    defaults: {
        anchor: '100%'
    },
    fieldDefaults: {
        labelAlign: 'left',
        msgTarget: 'none',
        invalidCls: '' //unset the invalidCls so individual fields do not get styled as invalid
    },

    items: [
    /*{
        xtype      : 'fieldcontainer',
        fieldLabel : 'Size',
        defaultType: 'radiofield',
        defaults: {
            flex: 1
        },
        layout: 'hbox',
        items: [{
            boxLabel  : 'M',
            name      : 'size',
            inputValue: 'm',
            id        : 'radio1'
        }, {
            boxLabel  : 'L',
            name      : 'size',
            inputValue: 'l',
            id        : 'radio2'
        }, {
            boxLabel  : 'XL',
            name      : 'size',
            inputValue: 'xl',
            id        : 'radio3'
        }]
    },*/
    {
        xtype: 'radiogroup',
        fieldLabel: '部门经理审批',
        defaults: {
			flex: 1
		},
        items: [{
			name: 'deptLeaderPass',
			inputValue: true,
			boxLabel: '同意',
			checked: true
		}, {
			name: 'deptLeaderPass',
			inputValue: false,
			boxLabel: '不同意'
		}]
    },{
        xtype     : 'textareafield',
        grow      : true,
        name      : 'deptLeaderBackReason',//修改
        fieldLabel: '驳回理由',
        anchor    : '100%'
    }],

   	bbar: [{
		xtype: 'button',
		ui: 'soft-green',
		text: '提交'	,
		handler: 'onClickDeptleaderAuditFormSubmitButton'
	},{
		xtype: 'button',
		ui: 'gray',
		text: '取消',
		handler:function(btn){
			var win = btn.up('window');
	        if (win) {
	            win.close();
	        }
		}
	}]
});
